<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Members | $rxTools</title>
    <meta name="description" content="校管家前端团队工具库">
    <script src="/tools/rx.tools.js"></script>
    
    <link rel="preload" href="/tools/assets/css/styles.a1269b41.css" as="style"><link rel="preload" href="/tools/assets/js/app.a1269b41.js" as="script"><link rel="preload" href="/tools/assets/js/4.b52bbfe2.js" as="script"><link rel="prefetch" href="/tools/assets/css/1.styles.5a8ea794.css"><link rel="prefetch" href="/tools/assets/js/1.5a8ea794.js"><link rel="prefetch" href="/tools/assets/css/2.styles.35543169.css"><link rel="prefetch" href="/tools/assets/js/2.35543169.js"><link rel="prefetch" href="/tools/assets/js/3.15e12b4b.js"><link rel="prefetch" href="/tools/assets/js/5.39105aa8.js"><link rel="prefetch" href="/tools/assets/js/6.27ca699b.js"><link rel="prefetch" href="/tools/assets/js/7.86895104.js"><link rel="prefetch" href="/tools/assets/js/8.d01f9c0e.js"><link rel="prefetch" href="/tools/assets/js/9.5494f412.js"><link rel="prefetch" href="/tools/assets/js/10.7f3024d4.js"><link rel="prefetch" href="/tools/assets/js/11.6790e062.js">
    <link rel="stylesheet" href="/tools/assets/css/1.styles.5a8ea794.css"><link rel="stylesheet" href="/tools/assets/css/2.styles.35543169.css"><link rel="stylesheet" href="/tools/assets/css/styles.a1269b41.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/tools/" class="home-link router-link-active"><!----> <span class="site-name">$rxTools</span></a> <div class="links" style="max-width:nullpx;"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><!---->  <ul class="sidebar-links"><li><div class="sidebar-group first"><p class="sidebar-heading open"><span>浏览器环境</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/tools/brower/env.html" class="sidebar-link">环境变量</a></li><li><a href="/tools/brower/event.html" class="sidebar-link">事件处理</a></li><li><a href="/tools/brower/element.html" class="active sidebar-link">元素相关</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/tools/brower/element.html#members" class="sidebar-link">Members</a></li><li class="sidebar-sub-header"><a href="/tools/brower/element.html#getminsize-⇒-object" class="sidebar-link">getMinSize ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/brower/element.html#getposition-⇒-object" class="sidebar-link">getPosition ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/brower/element.html#closest-⇒-element-null" class="sidebar-link">closest ⇒</a></li></ul></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading"><span>javascript 工具</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/tools/ext/array.html" class="sidebar-link">数组</a></li><li><a href="/tools/ext/date.html" class="sidebar-link">日期</a></li><li><a href="/tools/ext/number.html" class="sidebar-link">数值</a></li><li><a href="/tools/ext/object.html" class="sidebar-link">对象</a></li><li><a href="/tools/common.html" class="sidebar-link">其他</a></li></ul></div></li></ul> </div> <div class="page"> <div class="content"><p>#Element</p> <h2 id="members"><a href="#members" aria-hidden="true" class="header-anchor">#</a> Members</h2> <dl><dt><a href="#getMinSize">getMinSize</a> ⇒ <code>Object</code></dt> <dd><p>获取元素的最小尺寸（宽高）。</p></dd> <dt><a href="#getPosition">getPosition</a> ⇒ <code>Object</code></dt> <dd><p>获取元素对象的位置</p></dd> <dt><a href="#closest">closest</a> ⇒ <code>Element</code> | <code>null</code></dt> <dd><p>寻找最近的元素</p></dd></dl> <p><a name="getMinSize"></a></p> <h2 id="getminsize-⇒-object"><a href="#getminsize-⇒-object" aria-hidden="true" class="header-anchor">#</a> getMinSize ⇒ <code>Object</code></h2> <p>获取元素的最小尺寸（宽高）。</p> <p><strong>Kind</strong>: global variable<br> <strong>Returns</strong>: <code>Object</code> - width、height</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>el</td> <td><code>Element</code></td> <td>元素的宽高必须是固定的</td></tr></tbody></table> <p><a name="getPosition"></a></p> <h2 id="getposition-⇒-object"><a href="#getposition-⇒-object" aria-hidden="true" class="header-anchor">#</a> getPosition ⇒ <code>Object</code></h2> <p>获取元素对象的位置</p> <p><strong>Kind</strong>: global variable<br> <strong>Returns</strong>: <code>Object</code> - top、left</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>el</td> <td><code>Element</code></td> <td>元素</td></tr></tbody></table> <p><a name="closest"></a></p> <h2 id="closest-⇒-element-null"><a href="#closest-⇒-element-null" aria-hidden="true" class="header-anchor">#</a> closest ⇒ <code>Element</code> | <code>null</code></h2> <p>寻找最近的元素</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>el</td> <td><code>Element</code></td> <td>元素</td></tr> <tr><td>selector</td> <td><code>String</code></td> <td>选择器</td></tr></tbody></table></div> <div class="page-edit"><!----> <!----></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/tools/brower/event.html" class="prev">
          事件处理
        </a></span> <span class="next"><a href="/tools/ext/array.html">
          数组
        </a>
        →
      </span></p></div> </div> <!----></div></div>
    <script src="/tools/assets/js/4.b52bbfe2.js" defer></script><script src="/tools/assets/js/app.a1269b41.js" defer></script>
  </body>
</html>
